﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using CPPEI.Coolzon.Event.Core;
using CPPEI.Coolzon.Event.NCL;
using CPPEI.Coolzon.Metadata;
using CPPEI.Coolzon.UI;
using System.Collections;

namespace Coolvis.Console.Theme.MainViewControl
{
   public partial class Header
    {
        /// <summary>
        /// 打开场景
        /// </summary>
        /// <param name="event"></param>
        [CPPEI.Coolzon.Common.Subscribe]
        public void OnOpen(CoreOpenSceneCompletedEvent @event)
        {
            //tbSolution.Text = UIContext.Current.Solution.Caption;
            //tbPosion.Text = "";
            //scene = SolutionUtil.GetScene(UIContext.Current.Solution, @event.SceneName);
            //ArrayList al = UIContext.Current.Solution.GetScenePath(scene);
            //for (int i = 0; i < al.Count; i++)
            //{
            //    Scene iScene = al[i] as Scene;
            //    tbPosion.Text += scene.Caption;
            //    if (i < al.Count - 1)
            //    {
            //        tbPosion.Text += "-";
            //    }
            //}
        }
    }
}
